<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>找回密码</title>
<import type='css' file="Css.login" />
<import type='css' file="Css.basic" />
<js href="__JS__/jquery.1.7.min.js" />
<!--[if IE 6]>
<script src="__JS__/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('*');  //class="png_bg"
</script>
<![endif]-->
</head>
<body>
<div id="sky_denglupage">
	 <!--pagehome begain-->
	 <include file="Public:header"/>
	 <div class="sky_dengluye">
	   <!--zhuce begain-->
     
 <div class="sky_dltop"><img src="__IMAGES__/Home/login/denglu_top.gif" width="953" height="141" /></div>
             <div class="sky_dlct">
                <div class="sky_dlctleft">
                  <div class="sky_dlctl70"><img src="__IMAGES__/Home/login/denglu_left.gif" width="480" height="70" /></div>
                  <div class="sky_dlctqq">
                     <div class="sky_dlct32"><a href="#"><img src="__IMAGES__/Home/login/denglu_qq.gif" width="170" height="32" /></a></div>
                     <div class="sky_dlct32"><a href="#"><img src="__IMAGES__/Home/login/denglu_xinlang.gif" width="146" height="32" /></a></div>
                     
                  </div>
                  
                  <div class="sky_dlcttishi sky_style2">
我还不是吃好好的用户？30秒完成注册！                  </div>              
    <div class="sky_dlct29">
    <div class="sky_dlctkuaisu sky_style2"><a href="/index.php/Register/Index">快速注册</a></div>
    </div>
                    
              </div>
              <form action="__indexLib__/Login/Change_pwd" method="post">
              <input type="hidden" name="select" value="2" />
              <input type="hidden" name="question_id" value="" />
                <div class="sky_dlctright">
                   <div class="sky_dlcrtop sky_style1">欢迎使用找回密码</div>
                   <div class="sky_dlcrct">
                     <div class="sky_dlcrct30 sky_style2"><span style=" color:#ff0000">*</span> 请输入您的账户</div>
                     <div class="sky_dlcrct30">
                       <input name="username" type="text" id="textfield2" size="40" onKeyUp="retrieve_question(this)"/>
                     </div>
                     <div class="sky_dlcrcttishi"></div>
                     <div class="sky_dlcrct30 sky_style2 question_1" ><span style=" color:#ff0000;">*</span><span id="question_2"></span> </div>
                     <div class="sky_dlcrct30 question_1" ><input name="answer" type="text"  size="40" /></div>
                    
                     <div class="sky_dlcrctyzm30 sky_style2">
                       <div class="sky_yanzhengma">请输入验证码：</div>
                       <div class="sky_yanzhengmakuang">
                         <input name="code" type="text" id="textfield5" size="10" />
                       </div>
                       <div class="sky_yanzhengmapic"><img id="verifyImg" src="/index.php/Home/Login/verify" width="60" height="26" /></div>
                     </div>
                  <div class="sky_dlcrct30 sky_style2"><div class="sky_dlpic"><input type="submit" value="立即找回"></div></div></div>
                   <div class="sky_dlcrbottom"></div>
                </div>
            </form>
             </div>
	   <!--zhuce end-->
       </div>
<script type="text/javascript">
$(document).ready(function(){
	$(' div.question_1').hide();
	$("#verifyImg").click(function(){
		//重载验证码
		var timenow = new Date().getTime();
		document.getElementById('verifyImg').src= "/index.php/Home/Login/verify/"+timenow;
	});	
})
	function retrieve_question(obj){
		var user = obj.value;
		 $.getJSON('/index.php/Home/Login/Retrieve_question?username='+user, function(questions){
			if(questions=='2'){
				$('div.sky_dlcrcttishi').html('请输入正确的账户！');
				 $(' div.question_1').hide();
			 }else if(questions.question !=''){
				 $('div.sky_dlcrcttishi').html('');
				 $("input[name=question_id]").val(questions.id);
				 $('#question_2').html(questions.question);
				 $(' div.question_1').show();
			 }	 
		 });
		}
</script>
<include file="Public:footer"/>
